import time

from Common.Utils import blog_driver, Driver
from Common.FormHelper import FormHelper

# Test classes
from HomepageTest import HomePage
from LoginTest import Login
from Register import Register
from PersonalPage import TemplatePage
from MyProjectTest import MyProject
from MyQuestionPage import MyQuestion
from PersonalSettingsTest import PersonalsetingPage

if __name__ =="__main__":
    #注册
    Register().RegisterSucTest()
    Register().FaileTest1()
    Register().FaileTest2()
    Register().FaileTest3()
    Register().FaileTest4()
    Register().FaileTest5()
    Register().FaileTest6()
    Register().FaileTest7()

    #登录
    login=Login()
    login.LoginSuTest()
    login.FailTest1()
    login.FailTest2()
    login.FailTest3()

    #首页
    HomePage().pageElements()
    HomePage().CreatSucTest()
    HomePage().CheckSucTest()

    #我的项目
    MyProject().pageElements()
    MyProject().AddnewTest()
    MyProject().CheckTest()

    #我的题库
    MyQuestion().pageElements()
    MyQuestion().AddnewTest()
    MyQuestion().SearchTest()

    #模板广场
    template=TemplatePage()
    template.AddTemplate()
    template.SearchTemplateTest()

    #个人设置
    personal=PersonalsetingPage()
    personal.pageElements()
    personal.CommitSucTest()
    personal.FailTest1()



